Add the dispatch method (Listing 13.46)