answer to problem 2