created structure for chat