Replacing the array of Integers with a hashmap of String -> Integer.