Can pass a function in the input of a rule