Add XYPoint class.