You should have already followed the Creating a new shortcode with parameters recipe in the previous chapter to have a starting point for this recipe. Alternatively, you can get the resulting code (Chapter 2/ch2-twitter-embed/ch2-twitter-embed.php) from the downloaded code bundle.