First try to create a legend, a lot still to do and to cleanup (!)