first plot and code for first plot