Swap in histogram example