creating a module based on a template