First draft of a DocumentCollection implementation