Figure 1:
block diagram