Part of a course project for "The Data scientist's toolbox" course bu Coursera