added the 10th resistor and battery power supply connection