<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_coordinates(self, x, y, z=None):
 """Set all coordinate dimensions at once."""

        self.x = x
        self.y = y
        self.z = z