Small unfinished library in C++