modules/java-codes/modules/src/BonusControl.java
class BonusControl {

  private double totalBonus = 0;

  public void registry(Employee employee) {
    this.totalBonus += employee.getBonus();
  }

  public double getTotalBonus() {
    return this.totalBonus;
  }
}
