Basic example of a c++ library