Worked on Document class