Solution to problem 14
Solution to problem 20