Completing chapter 7 examples