Completing exercies for chapter 3