Adding a for-each loop