Created for the data scientist toolbox coursera class.