assignment: xor.js