Add new Document class.