example line this class represents the mathematical concept of a line segment