deleted class Document and replaced with DocumentModel