Added anonymous function snippet