Added for loop scripts for chapter 13