3 Build the hierarchical model