Up to prob 9 (unfinished)