Implementation of Naive Bayes Model