Trade manager system (Erlang learning project)