To show the first figure 

This is the program.