Added Pendulum class.