switch to class from module