Create extract.rb

First version