translate class to module