Problem 6 solution added.