basically finished simulation chapter