Added code flowchart