Started to implement piechart. Unstable version