added for loop and exercise 1.5