Block and wait for user input

The remaining code in Listing 9:

You have seen code like this before.