refactor ClusterExample