initial add: C++ functor example