Some erlang demo codes.