center of mass example