Added pendulum example. Now to work out why it's losing energy...