exercises done for chapter 5