Modify example to add a parametrized threaded fun