Func accepts internal functions as parameter