Completed problem 12