<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def do_quit(self, arg):
 """Quits the program."""

        if self.saved:
            self.save()
        else:
            self.parser.clean()
        return True