copied Processing-Election-Example
added codes to draw a pie chart