Add swap method