Solve some exercices from chapter 2.