Added legend and changed colors of lines