class Example to build the samples for clustering