Done excercises from chapter 6