Figure 4: Block diagram