Chapter 9 Adding attachments functionality