Create Midpoint.java