added draft revision of pie chart build/display code.