Add method to get the Center of Mass