erlang model code maker