New version of BayesianNetwork