added CentroidDemo