Problem 5 solution added.