Implement simple code generator