addition of pie chart and a test class for it to prove that it works