Some erlang etudes