getter and setter for all classes