You should have already followed the Creating a new enclosing shortcode recipe to have a starting point for this recipe and the resulting plugin should still be active in your development site. Alternatively, you can download the resulting code (Chapter 2/ch2-private-item-text/ch2-private-item-text.php) of that recipe from the Packt website (https://www.packtpub.com/support).