Code from the book, "Violent Python"