add some example to encapsulate any functions to func() task