answer to problem 1