moved line to its own file and added equals function, changed header to return a line, fixed header unit tests to use line class