Updated client.java