Added pie chart and did rewrite of example