Working with pie chart