Replacing some method to class variable getter