Rectangle class
Swap contents