bayes implemented
bayes implemented