add high order function example