Working through http://www.cis.upenn.edu/~bcpierce/sf/current/index.html