Adding pendulum attached to spring simulation