Erlang model/controller Template