added working legendtoc example