First attempt for C++ client