On the motion of a body containing a movable internal mass