ruby and erlang examples