added all of the basic bayes stuff