code to learn erlang