add attr_reader for instance vars