Work on the Document class