DocumentModel example source code.