started implementing the app model