HW1 extra credit 1a: add message box