Part 2 of swap exercise added.