Lesson 9 Dialogs and asking the user for confirmation