basic structure for any application with API calls