Changed naive bayes