added a pendulum simulation (will revery this later)