Event sourced bank written in Erlang