Figure 5.8 and Figure 5.9 added

Create python files for figure 5.8 and 5.9