naive bayes slides and template code