some erlang function code or kit