This program carries out the "tree method" for calculating Bayes probability illustrated in section 4.1.