Implementing the Naive Bayes baseline