Add imperative style example code.
Merge pull request #1 from svendcsvendsen/master

Add imperative style example code.