task model for Erlang