completed code generator for enum