added post-processing for the classes, ready to be algorithm-ized