Created and filled the narrowTheSearch method