Implement ch05/lambdas examples