Use lambda syntax for scope

in order to close #55