Rebased with the end of chapter 7 code from the book.
Changed password to be double quotes to match with the rest of the file.