How to iterate through an array/list? - Modular