Update model code to use attr_accessor getter/setter methods