finish problem16.erl