Implemented the Physics motion laws for the pendulum