chapter 6 (authentication) exercises