document and flowchart