PS here I fleshed out the example since the project contains a data file for Naive bayes.