slight modifications
added pie chart