Pendulum – Encoder(2nd part)