What you are doing is writing the variables to the new dialogs member variable.

Nice contribution but it cannot be taken as an article though.