My implementation of code from "Think Bayes."