Refactored RecordFormat to RowFormat and removed Record class