Wrote swapper function.
Wrote up function.