added plotting of cost into a pie chart