Final working code, adds chats to classroom's firebase