Architecture of the document