Lokal and distributed magic square calculation in Erlang