Updated Naive Bayes classifier