PieChart generation class (not tested yet)