How to write a document analysis for history