struturing the app