working on finding center of mass