Added p09.
Refactored p09.
Added p10, which is ugly.