First code generation