add rspec
added record class and test cases for parsing a line of each type of input