BayesNet learning working