You should have already followed the Displaying a calendar day selector using the Datepicker plugin recipe to have a starting point for this recipe. Alternatively, you can get the resulting code (Chapter 9/ch9-calendar-picker/ch9-calendar-picker-v1.php) from the code bundle and rename the file as ch9-calendar-picker.php.