Added code for Recipes 2-8 through 2-11