Add chapter 6 examples, functions, and procedures