Pipeline
Max and min for each class found
Min and max class retrieved