Create Centroid.java