<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def closed(self):
 """ True if ticket was closed in given time frame """

        for who, what, old, new in self.history():
            if what == "status" and new == "closed":
                return True
        return False