added government, leave behind, and gini calculation code.