implemented parse and == in Record