Added another example and fixed some errors.

The new example currently doesn't work due to errors in SGE; this
needs debugging.