Added new code for REcipes 2-12 to 2-14