Adding legends