changed the printBestTimes function to format the output