Solved problems 9 and 10.