loop and iterator exercises