Resolving problem 3.