My solution to the exercises in the book