problem 5 solution added