added variable for total slices of pie