naive bayes exercise