xor-stream example fixed