improve sample code more elixirish
Merge pull request #31 from ma2gedev/improve-sample-code

improve sample code more elixirish