@Override
    public boolean getOutput() {

        int counter = 0;
        for (int j = 0; j < getNumInputs(); j++)
            if (getInput(j))
                counter++;

        return (counter % 2 != 0);
    }