Wrote a new data simulation procedure.
Another function to simulate data.