homework 1, problem 12b solution example