Changed examples to use the generic lambda.