modeling the main app.