An attempt at chapter 10 exercises