Fig 2. Program flowchart for our design.