Adding main with XOR example