Adding solution to problem 32.1-2