lambda creation and execution working