<｜begin▁of▁sentence｜>### Instruction:
Given two rectangles defined by their x, y coordinates, width, and height values, how do you calculate the smallest rectangle that completely contains both initial rectangles using their union method?
### Response:
from Rectangle import Rectangle

# Define two rectangles
rect1 = Rectangle(0, 0, 2, 2)
rect2 = Rectangle(1, 1, 3, 3)

# Calculate the union of the two rectangles
union_rect = rect1.union(rect2)

# Print the coordinates of the union rectangle
print(f'Union Rectangle: x={union_rect.x}, y={union_rect.y}, width={union_rect.width}, height={union_rect.height}')
<|EOT|>
