EV3-G program using arrays