Exercises from http://www.cis.upenn.edu/~bcpierce/sf/