Changed getter and setter methods to attr_accessors.