Added read and write methods to Record