adding script to create figure 2