Refactored Line drawing into a seperate class Track.