Created first version of BayesianWriter