Adding Document class.