An extension to add a hierarchical structure to datasets