iteration 3 code analysis