A personal implementation of a bayesian network