Solved problems 7 & 8.