Create Output of swap.cpp