Introduce Model-View-Controller(MVC) is a very logical of dividing up the code that makes up a GUI-based application. MVC model devides up all functionality into 3 distinct categories:
Model The classed that hold your application's data
View Made up of the windows, controls, and other elements that user can see and interact with.
Controller Binds the model and view together and is the application logic that decides how to handle the user's inputs.