my erlang study code