created for project of Data scientist's toolbox course on coursera