Ported ST and Writer examples.

Ported two examples from the 6.0.x code base.