added pie chart feature. needs looping for other questions