creating chat_server class layout