Building Bayesian Network Based Expert Systems From Rules