using attr with true instead of attr_accessor