erlang day2 homework