Added code generation (chapter 3).