number 2 of foreach exercises