version with a lamdba
more unit tests