Finished the problem 1.3.9