Connecting wires to terminals