Use patterns for problem one
Finish problem three