kmeans generation code + ABCDE
generation running code