added spring pendulum simulation