Solve chapter 4.