Solutions to exercises from the book