main pareto to class