inference about inference: added more helper functions to last two code
blocks. They should work.
Merge branch 'master' of ssh://probmods.org/var/www/chapters