public void halfAdder(Wire input1, Wire input2, Wire sum, Wire carry) {
Wire i = new Wire();
Wire j = new Wire();
Action orGate = new OrGateAction(input1, input2, i, this);
orGate.action();
Action andGate1 = new AndGateAction(input1, input2, carry, this);
andGate1.action();
Action inverter = new InverterAction(carry, j, this);