getTfIdf corresponding to the 4th question of the TP is now ready and tested