assignment 2.2: XOR