solution with dicts