Completed problem 6 code