https://techiworks.com/lambda-function-inside-method/