Added point class to hold x-y coordinates and to figure out the slope
and midpoint of points