Mention the chapter six example dependency on R and Imap
Filter out invalid inputs