sample code for dendrogram structure