Chat.java Updated