Coordinate plane and line segments