Add Document class.