created for data scientist toolbox coursera class assignment