Created the resistor class.