Done chapter 6 exercises