Add .attr_accessor method to classes