Added LineSegment class