Added anonymous functions

Added anonymous functions