updated with simulated data example #8