Client_Server. Java implementation