Loading bayesian network code