Complete test of ex. 5 (Iterates through an array and puts)