added pendulum example