def addToDictPlus(d, key, value):
    """ if key doesn't exist, add (key : value) pair to d, otherwise add value
        to d[key]
    """
    if key in d:
        d[key] += value
    else:
        d[key] = value
