Creation of the document