use attr_accessor getter and setter methods
Merge pull request #229 from tzumainn/master

Update model code to use attr_accessor getter/setter methods