Added a legend into the line graph