defined base architecture for views and models of app