Updated Pie Chart Code