More idiomatic kotlin example
Fix compile error
Merge pull request #2 from naixx/master

More idiomatic Kotlin example