solved erlang 8,9,15