while loop and arrays