Created naive bayes classifier