client.cpp completely finished and fully functional