You never appear to create an instance and assign it to feeds
so it doesn't exist for anything to be added to. So, when you try to add each item
you're actually just throwing it away (effectively, and only when you create a new instance for the next item
). And that's why you only have the last item.
So, basically, be sure to create the feeds
array so you have somewhere to store the results.