Using Swap method