finished problem 8 and did problem 9