For the course project of Data Scientist's Toolbox at Coursera