add anonymous function example