Building the basic application structure