Completed problem 12, working on Problem 11