Setting up the legends