added code for Bayesian Cognitive Modeling