Added line segment class.