added picture of flowchart