A basic queuing system in Erlang