Added pendulum equations of motion