Made a new class TrackSegment.cs, which is an extension of the line class.