Adding Pendulum class