Updating chapter 10 example