A uniform rod AB of mass M is attached to a hinge at one end A