Add solutions for chapter 3.