Adding legend