Figure 5. Setting the handler for a button.