basic structure of app sorted