4 array for loops and 1 object for loop