Create PatternGenerator.g