Exercises from chapters 2 & 3