3 examples of udf functions