Use accessor methods instead of manipulating instance variables