created a ChatServer class