C++ lambda practice.