small C++ program