First attempt at generating Bayesian networks.