First draft of bayes net.