AN object that hangs from a fixed point and swings back and forth because of gravity is a ?

A pendulum.