set up simulaiton code in jags