Added Controller class and Dialog class. Forgot to put these in the last check-in.