adding a basic template for naive bayes