first cut of the MVC pattern code. controller-add has been tested.