C++ practice program/library