Added code for Figure 7
added Fig 7