implemented a dialog to ask for user input as dictionary size