Using the .each method for arrays