The Transistor Modeled as a Switch