Implement looping trough an array of objects.