Basic simulation of pendulum dynamics, nothing special.