Answer to problem 1