Solutions to http://www.cis.upenn.edu/~bcpierce/sf/