The function named doSomething
All of the new and interesting code in this program is in an instance function named doSomething.
The beginning of the function named doSomething is shown in Listing 1.