Example solutions to in-class exercises.