Create generator.m