class Leaderboard {

    public Map<String, Integer> driverResults() {
        Map<String, Integer> results = new HashMap<String, Integer>();
        for (Race race : this.races) {
            for (Driver driver : race.getResults()) {
                String driverName = race.getDriverName(driver);
                int points = race.getPoints(driver);
                if (results.containsKey(driverName)) {
                    results.put(driverName, results.get(driverName) + points);
                } else {
                    results.put(driverName, 0 + points);
                }
            }
        }
        return results;
    }

    public  Leaderboard(Race... races);

}