simple module generation using ModuleGenerator