The doSomething function

The new material is contained in the doSomething function, which is shown in its entirety in Listing 9.