added the code to sort the functions and return the top 10 urls in a file