Code from the Python tutorial on page 106.
