End Points method in LineSegment class