Figure 1:
Block diagram of system