solved 7 -- erlang