updated client.cpp for sexylooking code in case 1