changed client.java - added logic for consistant hash