Calculating Centers Of Mass And Moments Of Inertia In A Z