exercises from thinkstats by Allen B Downey