solutions to problem 10, 11, and 12