added party-wise totals categorized by first, second, third classes