Network successfully learns XOR gate behaviour