Added the Xor method