revision exercise 3 flowchart