2.4 Writing an echo client (not working)