Using the Transister as a Switch