Example elixir solution to CPTR 124 exercise