<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def update(self, percent=None, text=None):
 """ Update the progress bar percentage and message. """

        if percent is not None:
            self.percent = percent
        if text is not None:
            self.message = text
        super().update()