Change sample code of Étude 6-2 to Elixir.

The current sample code is in Erlang. The change reflects the Elixir version.
Merge pull request #4 from benjamintanweihao/patch-3

Change sample code of Étude 6-2 to Elixir.