added each_with_index to directory.rb
added start_with? filter to names