added plot 4 source and output