added prototype for new piechart object