extract Cluster class to external file