basic pie charts done, with logic