<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_startup_handler(self, handler):
 """Adds a startup handler to the hug api"""

        if not self.startup_handlers:
            self._startup_handlers = []

        self.startup_handlers.append(handler)