Added a collection object
Added magic and each methods to the collection.
Plus some tests