add link to complete example of pendulum