Added methods to Client.java