Simplified and sped up the "type-function" example.
Merge pull request #83 from doctorme/master

Simplified and sped up the "type-function" example.