example of using a getter and setter with an attribute