Exercise 1 in for loops working