Implemented drawing pie chart