Implement Bayesian Networks Explained