extended the functionalities for the classes