solution to 'Introduction to Data Science' by Bill Howe