Created as an exercise during the Coursera course "The Data Scientist's Toolbox" (https://class.coursera.org/datascitoolbox-007/)