examples from python ds book