completed the simulation part of project 9