Cswap: First attempt at deviating from a tutorial!