initizlize the  structure of the application