Thinkstats book exercise