You should have already followed the Adding custom categories for custom post types recipe to have a starting point for this recipe, and the resulting plugin should still be active in your development site. Alternatively, you can get the resulting code (Chapter 4/ch4-book-reviews/ch4-book-reviews-v5.php) from the downloaded code bundle and rename the file ch4-book-reviews.php.