pseudo code for finder.rb