Add solutions for chapter 5.
Merge branch 'ch05'