Create app function structure