built a For Loop

For loop cycles through whole array