part of my coursera project for 'the data scientist's tool box' course