Added Document class.