Implementation  of C++ library.