Structure ContributionSummary class

Part of #512.