Added controller.

A controller class has been added to communicate models and views.