an electrical device with two different types of switches