simple code generator