My answer for Elixir Quiz