ch08: add bayes classifier and demo