added a simple load function to the collection class