Extra Credit for HW3

Added text box to dialog, removing output to message box. Created for
loops as required for the extra credit.