adding BayesNet