modified plot1.R to cache
added plot2