- finished error simulator for iteration 3