Add make_select_tree function to category class