add add functionality for all classes