Use writer and accessor in methods to read and write instance variables