Add missing 'end' block to Listing 9.48