added resistor calculator class