problem 8 done
problem 9 done