Implemented a simple Bayesian probability calculator.