how to transistor work with binary number