pendulums example