added hw7, review simulation