client server example corrected