Adding the legend