For a simple pendulum