problem17 done.