Beginning phase 3 (code generation)