making a class out of grouping of functions