Added swap method