Update chat.rb