problem 3 solution and spacing fix
problem 5 solution
spacing fix