Define the record structure and method for parsing