Create chat.java