Bayesian network OO design.