set up simulated data and model