finish problem 8; add problem 9