if (index === -1) {
                this.contributors.push(new IdContributionPair(id, amount));
            } else {
                this.contributors[index].contribution += amount;
            }