Implement record class