Refactoring by hiding instance variables in the accessor method