some exercises(-ex4) for chapter 5