<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def extend(a: dict, b: dict) -> dict: """Merge two dicts and return a new dict. Much like subclassing works."""

    res = a.copy()
    res.update(b)
    return res