Changed pin.rb file