inherit from erlang