finished through problem 10