This is a homework for the coursera course The Data Scientist’s Toolbox