created a small ChatServer class