Basic XOR functionality implemented