personal implementation of classes in the C++ library