Midpoint and Coordinate Geometry