creating anonymous function

creating anonymous function