quiz and extra credit for tree_map