added iteration 7 to compare with python version