Modified Chat.cs