npn transistor as a switch