Naive Bayes version 1