This is my answer to Q2 of the 'The Data Scientist Toolbox' course project.