The chat program now sends a message correctly.