add spec/extract_spec.rb