Implement task creation in example.