for-loop and and array