Answer to problem 5