adding the flowchart