Create center-of-masses.java