a diagram of a pendulum