passing class as argument