Solutions to exercises in Chapter 1