added script for plot 3 and graphic