add naive bayes method