uncommented the cout statements to print the urls