Completed examples from chapter 3.