refactor Record class
refactor Record class