<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(self, **kwargs):
 """Returns a new instance with this instance's data overlayed by the key-value args."""


    props = self.copy()
    props.update(kwargs)
    return TemplateData(**props)