Same as other two classes, except does not have children (is a leaf node)I just threw that together, you can make it much more elegant and simple by using comparison functions and templates rather than derived classes, and of course using something other than stl That also allows you to use anything you write a comparison function for, you could have all messages from a certain sender (not possible