Solution to #7
Solution to #8
Solution to #9
Solution to #10