Added method to the Collection class that returns the full list of entities.