Add a method to iterate over all members of a collection