Knowledge in Design and implementation of transistor as a switch