follow Baysian Inference code and book