solution for bayesian networks 329890