Answer to problem 4