reimplemented pie chart as well
edited pie example