<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def destination(self, bearing, distance):
 """Calculate destination locations for given distance and bearings. Args: bearing (float):
 Bearing to move on in degrees distance (float):
 Distance in kilometres Returns: list of list of Point: Groups of points shifted by ``distance`` and ``bearing`` """

        return (segment.destination(bearing, distance) for segment in self)