Solved problems 9 & 10.