defined app structure