classess as parameter for file factory