Added the Document class