Constructor and Methods

Added a constructor and some methods in Record class. I don't know if
this is correct, 'cause as far as I know we are probably making this
one a hashmap.