Figure 3: Program flow chart.