Basic sample problems in Erlang