for loop and array