Added legends to plot2