Figure 1:
Flowchart.