Added a simulation of an inverted pendulum.