graphics code updated with 2 plots