solutions for problems 9-10