Solution to problem 17
Solution to problem 18
Solutions to problems 17 and 19