Add a getter method for the class