Listing 4-1.  Events in Component