Transistors as Electronic Switches