an electronic circuit with two different types of switches