Working with loops and arrays