attr_accessor method rewritten.