Moved legend_demo back, since it is referred to from elsewhere