Solution to problem 48
Solution to problem 30