problem 4 solution 6 added
problem 5 updated