Testing additions
Created private swap method to make it more readable