Add new Document class as a document container which holds the  layout, the template  can contain another Documents. 
Therefore a Document can serve as a document container