not sure what's so confusing with the rules.
there is a rule that you can use udf's.
don't think there is any place for confusion in that.