Finish exercise chapter 2