Chapter 10: Added Email Functionality