A flocking simulation written in Erlang