Problem
Here are some exercises for you to try on your own:
1. Write a GUI application with a button labeled "Good-bye." When the button is clicked, the window closes.
2. Write a GUI application with a single button. Initially, the button is labeled 0, but each time it is clicked, the value on the button increases by 1.