improve naive bayes tutorial