finished simulation chapter (need corrections)