Code developed during the Bayes Hack 2014 http://www.bayesimpact.org/hack