Type definition to Func