<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def byPromissor(self, ID):
 """ Returns all directions to a promissor. """

        res = []
        for direction in self.table:
            if ID in direction[1]:
                res.append(direction)
        return res