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