chat data structures