makes PieChart OO
removes legacy dependencies from modules