Added a center of mass
extending DrawingObject to add more functionality