ADDED : Activity method in Client.java