Added legend, issue #8