add hierarchical extract example