function definition and application working
get anonymous functions working