for loops and nested for loops