added first prototype of Generator.