Code from the Python tutorial on page 108.
