moves pie chart to seperate class