Added a new class to represent the data encoded in input lines.
Converted populateDataModel to use the new LineData class.