Implement a Collection class as a replacement for DocumentSet.