added set segmentation and testing classes