the examples from the book DiveInPython