WKSP-02: changed hint: foldLeft -> map and toMap