problem 7 working.
problem 8 working.