Problem 8 solution added