some edits to textbook version
Merge branch 'master' of https://github.com/gully/bivariate_practice
trying this again