Set up application structure