<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def resize(self, width, height):

 """
 Should be called every time window is resized
 so the example can adapt to the new size if needed
 """

        if self.example:
            self.example.resize(width, height)