Convert examples to return functions so data is regenerated on each click.