add attr_writer and attr_accessor in place fo each individual getter and setter