Added method to get the first object in the collection.