examples of using scope/lambda