calling the function from the class