<｜begin▁of▁sentence｜>### Instruction:
Given a rectangle initially positioned with its bottom-left corner at (2, 4) and its top-right corner at (6, 8), can you use the `midx` method to move the center of the rectangle to X coordinate 10, and then print the new coordinates of the rectangle?
### Response:
from rectangle import Rectangle

# Create a rectangle
rect = Rectangle(2, 4, 6, 8)

# Move the center of the rectangle to X coordinate 10
rect.midx(10)

# Print the new coordinates of the rectangle
print(rect)
<|EOT|>
