added code for problem 17. Oh, my! that was hell!