Created connected-sets.rb