Adding next level of naive bayes structure