add a sample C++ library