first prototype of menu code generator