Added center of mass calculator