working single pendulum