Finished problem 7.