added code to ask the user a series of questions