pendulum assignment