<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def dist_to(self, p2):
 """Measure the distance to another point."""

        return math.hypot(self.x - p2.x, self.y - p2.y)