UC-54 Suggested updates for current pull request

Eliminating the ```create_function``` call with the new lambda function syntax