Basic code generator