new file:   resistor.rb