This is for question 2 of the course project of the Data Scientist’s Toolbox course on coursera