Now we have working swap function