construct module classes as $module