How to create an Erlang Port