added draft (still incmplete) of the bayes network procedure