Started work on bayesian system