TermWriter example