Modernizing the TH example.
Merge pull request #199 from ret/patch-1

Modernizing the TH example.